<!DOCTYPE html>
<html>
<head>
<link
	href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css"
	rel="stylesheet" type="text/css" />
<script
	src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script
	src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>

<script>
	$(document).ready(function() {
		$("#tabs").tabs();
	});
</script>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
</head>
<body style="font-size: 62.5%;">

	<div id="tabs">
		<ul>
			<li><a href="#fragment-1"><span>VenuDetail</span> </a></li>
			<li><a href="#fragment-2" title="Address"><span>Address</span>
			</a></li>
			<li><a href="#fragment-3"><span>Three</span> </a></li>
		</ul>
		<div id="fragment-1">
			<p>Venu Detail Entry :</p>
			<pre>
				<code>$('#example').tabs();</code>
			</pre>
			<table>
				<form:form commandName="shaadiVenue" action="addShaadiVenue.htm">
					<Tr>
						<td>VenuName</td>
						<Td><form:input path="venueName" /></Td>
						<td><font color="red"><form:errors path="venueName" /></font></td>
					</Tr>
					<Tr>
						<td>webSite :</td>
						<td><form:input path="webSite" />
						</td>
					</Tr>
					<Tr>
						<td>emailId :</td>
						<td><form:input path="emailId" /></td>
						<td><font color="red"><form:errors path="emailId" /></font></td>
					</Tr>
					<Tr>
						<td>minGuest :</td>
						<td><form:input path="minGuest" maxlength="4" />
						</td>

						<td>maxGuest :</td>
						<td><form:input path="maxGuest" maxlength="4" /></td>
					</Tr>
					<Tr>
						<td>cateringSupported :</td>
						<td><form:checkbox path="cateringSupported" value="true" />
						</td>
					</Tr>
					<Tr>
						<td>allowOutSideCatering :</td>
						<td><form:checkbox path="allowOutSideCatering" />
						</td>
					</Tr>
					<Tr>
						<td>allowOutSideDecorMgmt :</td>
						<td><form:checkbox path="allowOutSideDecorMgmt" />
						</td>
					</Tr>

					<Tr>
						<td>allowOutSideMusic :</td>
						<td><form:checkbox path="allowOutSideMusic" />
						</td>
					</Tr>
					<Tr>
						<td>allowOutSideDecorMgmt :</td>
						<td><form:checkbox path="allowOutSideDecorMgmt" />
						</td>
					</Tr>
					<Tr>
						<td>liquorLicense :</td>
						<td><form:checkbox path="liquorLicense" />
						</td>
					</Tr>
					<Tr>
						<td>pricePerPlate :</td>
						<td><form:input path="pricePerPlate" />
						</td>
					</Tr>
					<Tr>
						<td>valletParking :</td>
						<td><form:checkbox path="valletParking" />
						</td>
					</Tr>
					<Tr>
						<td>twoWheelerParkingCap :</td>
						<td><form:input path="twoWheelerParkingCap" />
						</td>
					</Tr>
					<Tr>
						<td>fourWheelerParkingCap :</td>
						<td><form:input path="fourWheelerParkingCap" />
						</td>
					</Tr>
					<tr>
						<td colspan="2" align="centre"><input type="submit"
							name="Add" value="save"/>
						</td>
					</tr>
				</form:form>

			</table>

		</div>
		<div id="fragment-2">
			<table>
				<form:form commandName="shaadiVenue" action="addShaadiVenue.htm">

					<c:forEach items="${shaadiVenue.addressSet}" var="address" varStatus="status">
						<tr>
							<td align="center">${status.count}</td>
							<td><input name="addressSet[${status.index}].address1"
								value="${address.address1}" />
							</td>
						</tr>
					</c:forEach>
					<c:choose>
						<c:when test="${!empty shaadiVenue.addressSet}  ">
							<c:out value="test" />
							<c:forEach var="address" items="${shaadiVenue.addressSet}">
								<form:input path="${address.address1}" />
							</c:forEach>
						</c:when>
						<c:otherwise>
							<tr>
								<td>Address1 :</td>
								<td><form:input path="${address.address1}" /></td>
							</tr>
							<tr>
								<td>Address2 :</td>
								<td><form:input path="${address.address2}" /></td>
							</tr>
							<tr>
								<td>Address3 :</td>
								<td><form:input path="${address.address3}" /></td>
							</tr>
								<tr>
								<td>Address3 :</td>
								<td><form:input path="${address.address3}" /></td>
							</tr>
								<tr>
								<td>LandMark :</td>
								<td><form:input path="${address.landmark}" /></td>
							</tr>
							</tr>
								<tr>
								<td>ZipCode :</td>
								<td><form:input path="${address.zipcode}" /></td>
							</tr>
							</tr>
								<tr>
								<td>LandMark :</td>
								<td><form:input path="${address.landmark}" /></td>
							</tr>
							<tr>
								<td>City :</td>
								<td><form:select path="${address.city}" items="${cityList}" itemLabel="city" itemValue="id"/></td>
							</tr>
							<tr>
								<td>Latitude :</td>
								<td><form:input path="${address.latitude}" /></td>
								<td>Langitude :</td>
								<td><form:input path="${address.langitude}" /></td>
							</tr>
						</c:otherwise>
					</c:choose>
					<td colspan="2" align="centre"><input type="submit"
							name="Add" value="save"/>
					</td>
				</form:form>
			</table>
		</div>
		<div id="fragment-3">Lorem ipsum dolor sit amet, consectetuer
			adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet
			dolore magna aliquam erat volutpat. Lorem ipsum dolor sit amet,
			consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt
			ut laoreet dolore magna aliquam erat volutpat. Lorem ipsum dolor sit
			amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod
			tincidunt ut laoreet dolore magna aliquam erat volutpat.</div>
	</div>
</body>
</html>